Skip to content

Added: option to show tab subtitle with URL#1924

Open
emvaized wants to merge 2 commits into
mbnuqw:v5from
emvaized:tab_subtitles
Open

Added: option to show tab subtitle with URL#1924
emvaized wants to merge 2 commits into
mbnuqw:v5from
emvaized:tab_subtitles

Conversation

@emvaized

@emvaized emvaized commented Dec 18, 2024

Copy link
Copy Markdown
Contributor

This pull request adds an option to show subtitle below each tab with its URL. It probably wasn't requested by anyone, but I suddenly came up with this idea, and after test-driving it for a few days I quite liked it. Seeing all urls at once allows to navigate tabs quicker, and makes it easier to distinguish between them.

By default this option is disabled, and should be manually discovered and enabled in Sidebery settings > Tabs. Subtitle shows url of each tab, but in the future it could possibly be used to show any other information. "https://" part of the URL is trimmed in the beginning, because I found it visually overwhelming (I'm not sure if "http://" should be trimmed as well).

This PR also adds some basic styles for the subtitle, such as smaller font and 70% opacity. It could probably also include some rules to increase default tab height when subtitles are enabled, but it currently doesn't do that, so tabs might become a bit too crowded with the default tab height.

Here's how it looks with --tabs-height=40px set in the styles editor (recommended):

2024-12-17_21-07

@llc0930

llc0930 commented Dec 19, 2024

Copy link
Copy Markdown
Contributor

I feel that this feature is more closely related to the "Show URL in tooltip" option and should be placed before or after it.

@emvaized

Copy link
Copy Markdown
Contributor Author

I feel that this feature is more closely related to the "Show URL in tooltip" option and should be placed before or after it.

Wouldn't this option then be misinterpreted as related to the tooltip?

@llc0930

llc0930 commented Dec 19, 2024

Copy link
Copy Markdown
Contributor

I don't think so... Is the text of the two options hard to understand? Especially when they are already two different settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants